﻿@{
    Layout = null;
}
<style>
    .top_explanation
    {
        border: 1px solid #DFC684;
        background: #F9EDBD;
        line-height: 22px;
        padding: 10px 15px;
        height: 60px;
        margin: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .my-uploadify-button {
	    background:none;
	    border: none;
	    text-shadow: none;
	    border-radius:0;
    }

    .uploadify:hover .my-uploadify-button {
	    background:none;
	    border: none;
    }

</style>
<div class="pageHeader">
    <div class="searchBar">
        <div class="top_explanation">
            1、该功能仅提供给已微信认证的服务号；<br />
            2、虽然群发功能每日调用限制为100次，但是用户每月只能接收4条消息，请不要频繁发送；<br />
            3、用户每月只能接收4条群发消息，多于4条的群发将对该用户发送失败。
        </div>
    </div>
</div>
<div class="pageContent">
    <div class="tabs" currentindex="0" eventtype="click">
        <div class="tabsHeader">
            <div class="tabsHeaderContent">
                <ul>
                    <li><a href="javascript:;"><span>文本数据回复</span></a></li>
                    <li><a href="javascript:;"><span>图文数据回复</span></a></li>
                </ul>
            </div>
        </div>
        <div class="tabsContent">
            <div>
                <form method="post" action="/Message/SendAll" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
                <div class="pageFormContent" layouth="58">
                    <dl class="nowrap">
                        <dt>信息：</dt>
                        <dd>
                            <textarea style="width: 98%" rows="10" name="textContent"></textarea>
                        </dd>
                    </dl>
                    <dl class="nowrap">
                        <dt>&nbsp;</dt>
                        <dd>
                            <div class="buttonActive">
                                <div class="buttonContent"><button type="submit">保存</button></div>
                            </div>
                        </dd>
                    </dl>
                </div>
                </form>
            </div>
            <div>
                <form method="post" action="/Message/SendAll" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
                    <div class="pageFormContent" layouth="58">
                        <dl class="nowrap">
                            <dt>说明：</dt>
                            <dd>
                                封面图片建议尺寸：360像素 * 200像素，其他图片建议尺寸：200像素 * 200像素。图文最多10条。
                            </dd>
                        </dl>
                        <dl class="nowrap">
                            <dt>封面：</dt>
                            <dd>
                                <img src="/Content/themes/default/images/front_cover.jpg" alt="封面" />
                                <input type="hidden" name="importFile" id="importFile"/>
                                <label><span style="color: blue;" id="uploadFileName"></span></label>
                                <input id="uploadFile" type="file" name="uploadFile" 
                                       uploaderOption="{
			                            swf:'/Content/uploadify/scripts/uploadify.swf',
			                            uploader:'/WeixinUpload?op=upload',
			                            formData:{inputName:'uploadFile', uploadDir:'/upload/excel/',saveType:0,maxSize:2048*1024,fileExt:'xls,xlsx'},
                                        QueueID:'',
                                        cancelImage: '/Content/uploadify/img/cancel.gif',
                                        buttonImage:'/Content/uploadify/img/uploadify_buttomimg.gif',
                                        buttonClass:'my-uploadify-button',
                                        width:81,
                                        height:22,
			                            buttonText:'选择文件',
			                            fileSizeLimit:'200KB',
			                            fileTypeDesc:'图片(*.jpg;*.gif;*.png;*.bmp;*.ico;)',
			                            fileTypeExts:'*.jpg;*.gif;*.png;*.JPEG;*.BMP;*.ICO;',
			                            auto:true,
			                            multi:false,
			                            onUploadSuccess:function(file, data, response){
                                            $('#importFile').attr('value',data);
                                            if(data != 'undefined' || data != ''){
                                                $('#uploadFileName').html(file.name);
                                                $('#uploadFile').hide();
                                            }
                                        },
			                            onQueueComplete:uploadifyQueueComplete
		                            }"
                                    />
                            </dd>
                        </dl>
                        <dl class="nowrap">
                            <dt>标题：</dt>
                            <dd>
                                <input name="title" class="" type="text" maxlength="256" style="width: 370px;" />
                            </dd>
                        </dl>
                        <dl class="nowrap">
                            <dt>描述：</dt>
                            <dd>
                                <textarea style="width: 370" rows="5" name="textContent"></textarea>
                            </dd>
                        </dl>
                        <dl class="nowrap">
                            <dt>&nbsp;</dt>
                            <dd>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button type="submit">保1存</button></div>
                                </div>
                            </dd>
                        </dl>
                    </div>
                </form>
            </div>
        </div>
        <div class="tabsFooter">
            <div class="tabsFooterContent">
            </div>
        </div>
    </div>
</div>
